home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
470
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
1KB
Path: baja.pacificrim.net!news
From: JACKIE MILLER <jmiller@MAIL.PACIFICRIM.NET>
Newsgroups: comp.std.c
Subject: Re: Need help with fprintf(stdprn,format,arg)
Date: 1 Mar 1996 02:55:57 GMT
Organization: MCI
Message-ID: <4h5ovt$dih@baja.pacificrim.net>
References: <4h20na$6ps@baja.pacificrim.net>
NNTP-Posting-Host: whatcom-ppp34.pacificrim.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; U; 16bit)
KEVIN MILLER <MSIMONDS@MAIL.PACIFICRIM.NET> wrote:
>This short c program doesn't seem to work. I'm runiing a 486 clone with
>Borland Turbo C.
>
>#include>stdio.h>
>main()
>{
>float f = 2.0134;
>fprintf(stdprn, "Print this on the printer\r\n");
>fprintf(stdprn, "and now some numbers: \r\n");
>fprintf(stdprn, "The square of %f is %f",f,f*f);
>fprintf(stdprn, "\f"); /**form feed**/
>}
>
>any help with redirecting out to the printer would be appreciated.
>
>Thanks
>
>Kevin.
>
First, to all who took the time to reply, my thanks and my apologies.
To those who read and did not reply, also my apologies. As a rookie
in the game of life I have a lot to learn not the least of which is the
correct forum for questions of this nature. I was not, at the time, aware
that this newsgroup was for ANSI C only. I am now and promise not to
darken your doors again. Mea Culpa Mea Culpa etc. Sorry and Thanks....